/*
 * @Author: zi.yang
 * @Date: 2021-10-02 13:39:37
 * @LastEditors: zi.yang
 * @LastEditTime: 2021-10-05 01:19:39
 * @Description: In User Settings Edit
 * @FilePath: \ziYangPM\src\store\Dict\getters.js
 */

const findDict = (state, dictType) => state.allDictData.filter((dict) => dict.dictType === dictType)
export default {
  allDictDataState: state => state.allDictData,
  genderState: state => findDict(state, 'GENDERS'),
  userStatusState: state => findDict(state, 'USER_STATE')
}
